import defaultIcon from '@/assets/digitalhuman/01_s.png';

const modules = import.meta.glob('@/assets/digitalhuman/*.png', {
  eager: true,
  import: 'default',
});

const iconMap: Record<string, string> = {};

Object.keys(modules).forEach((path) => {
  const matched = path.match(/digitalhuman\/(.+)\.png$/);
  if (matched) {
    const key = matched[1];
    iconMap[key] = modules[path] as string;
  }
});

export { iconMap, defaultIcon };
